package com.lhz.project.system.model.param.auth;

import com.lhz.common.page.BaseQueryParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 参数类
 *
 * @author LiHuaZhi
 * @since 2020-06-23 17:02:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "操作日志查询")
public class OperateLogParam extends BaseQueryParam {

    @Schema(description = "模块名称(模糊)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String model;

    @Schema(description = "操作账户(模糊)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    @Schema(description = "请求类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private String httpMethod;

    @Schema(description = "是否成功：1-成功 2-失败", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer isSuccess;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime endTime;

}